package com.sea.operate.mapper;

import com.sea.operate.entity.Related;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  运营对照表表接口
 * @author 陈鸿飞
 * <br/>
 */
public interface RelatedMapper {

    /**
     * 条件查询
     * @param related
     * @return
     */
    List<Related> findByCnd(Related related);

    /**
     * 新增
     * @param related
     * @return
     */
    int insert(Related related);

    /**
     * 更新
     * @param related
     * @return
     */
    int update(Related related);

    /**
     * 根据ASIN查找
     * @param relatedAsin
     * @return
     */
    Related findByAsin(@Param("relatedAsin") String relatedAsin, @Param("relatedChannelName") String relatedChannelName);

    /**
     * 更新Listing
     * @param related
     * @return
     */
    Integer updateListing(Related related);
}